//封装请求
import request from "@/utils/request.js";
//基础配置
import APP from '@/config/app.js'
//活动人口
const Welfare = APP.Welfare;
//实例化
const url = request.request;

 //获取学校列表
  function getSchoolList(data ={}) {
 	data['m'] = 'public_welfare';//模型
 	data['c'] = 'school';//控制器
 	data['op'] = 'getSchoolList';//方法
 	return  url.post(Welfare, data);
 }
 //获取学校列表
  function getSchool(data ={}) {
 	data['m'] = 'public_welfare';//模型
 	data['c'] = 'school';//控制器
 	data['op'] = 'getSchool';//方法
 	return  url.post(Welfare, data);
 }
 //获取班级列表
  function getTeamList(data ={}) {
 	data['m'] = 'public_welfare';//模型
 	data['c'] = 'team';//控制器
 	data['op'] = 'getTeamList';//方法
 	return  url.post(Welfare, data);
 }

export default {
	getSchoolList,
	getSchool,
	getTeamList,
}